A

Autonomous Agents Agentic Workflow

SE: Review + Merge PR — Autonomous Agents Automation Workflow

Review PR, resolve conflicts, fix issues, merge, report back

Available free v1.0.0 Browser
$ sidebutton install Autonomous Agents
Download ZIP
se
ops/agent_se_review_merge.yaml

Inputs

type
string
description
Jira ticket URL
type
string
default
description
Optional extra instructions for the agent
type
string
default
~/workspace
description
Working directory for the agent

Allowed Domains

Unrestricted — no domain lock enforced.

Step Summary

2 steps using step types: terminal.openterminal.run .

Workflow Definition

YAML source for the ops/agent_se_review_merge.yaml workflow. This is the complete definition executed by the SideButton MCP server when Autonomous Agents agents run this automation.

schema_version: 1
id: agent_se_review_merge
title: "SE: Review + Merge PR"
description: "Review PR, resolve conflicts, fix issues, merge, report back"
category:
  level: pipeline
  domain: engineering

metadata:
  agent: true
  role: se

params:
  ticket_url:
    type: string
    description: "Jira ticket URL"
  hint:
    type: string
    default: ""
    description: "Optional extra instructions for the agent"
  entry_path:
    type: string
    default: "~/workspace"
    description: "Working directory for the agent"

steps:
  - type: terminal.open
    title: "Agent: SE Review + Merge"
    cwd: "{{entry_path}}"
  - type: terminal.run
    cmd: >-
      source ~/.agent-env && claude --dangerously-skip-permissions
      "read ticket with attachments and all comments - {{ticket_url}}. if it fails, stop and report the error.
      find the linked PR in ticket comments. learn how to SE relevant parts.
      check out the PR branch locally and review the diff against ticket requirements.

      REVIEW: read every changed file. check correctness, edge cases, missing acceptance criteria, code style.

      CONFLICTS: if the PR has merge conflicts with the target branch, resolve them — prefer the PR intent, preserve target branch fixes.

      ISSUES: if you find bugs, missing logic, or acceptance criteria gaps — fix them in the PR branch and push.

      CI: after fixes, verify the build passes (run tests, lint, type-check as applicable). fix any CI failures.

      MERGE: once review is clean, CI passes, and no conflicts remain — merge the PR via gh CLI (merge commit, not squash, unless repo convention says otherwise). delete the remote branch after merge.

      {{hint}}
      write one comment to the ticket with: review summary (what was checked), conflicts resolved (if any), issues fixed (file refs), CI status, merge confirmation (PR link + merge commit), and how to verify on the target branch."

How To Run

Install the Autonomous Agents knowledge pack into your SideButton agent, then dispatch this workflow by its ID ops/agent_se_review_merge.yaml. Agents invoke it directly via the MCP protocol or through the portal.